package com.hfjyz.base.entity;

import java.util.HashSet;
import java.util.Set;

public class MenuEntity extends BaseEntity {
    private Integer parentId;
    private String menuText;
    private String menuLink;
    private Set<AuthEntity> authorizations = new HashSet<AuthEntity>(0);

    /** default constructor */
    public MenuEntity() {
    }

    /** minimal constructor */
    public MenuEntity(String menuText, String menuLink) {
        this.menuText = menuText;
        this.menuLink = menuLink;
    }

    /** full constructor */
    public MenuEntity(Integer parentId, String menuText, String menuLink, Set<AuthEntity> authorizations) {
        this.parentId = parentId;
        this.menuText = menuText;
        this.menuLink = menuLink;
        this.authorizations = authorizations;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getMenuText() {
        return this.menuText;
    }

    public void setMenuText(String menuText) {
        this.menuText = menuText;
    }

    public String getMenuLink() {
        return this.menuLink;
    }

    public void setMenuLink(String menuLink) {
        this.menuLink = menuLink;
    }

    public Set<AuthEntity> getAuthorizations() {
        return this.authorizations;
    }

    public void setAuthorizations(Set<AuthEntity> authorizations) {
        this.authorizations = authorizations;
    }
}
